]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-app: Use AdwApplication
authorRomain Vigier <romain@romainvigier.fr>
Mon, 4 Oct 2021 13:18:51 +0000 (15:18 +0200)
committerRomain Vigier <romain@romainvigier.fr>
Wed, 5 Jan 2022 13:33:35 +0000 (14:33 +0100)
Initialize libadwaita, which loads the libadwaita stylesheet
and allow following the dark style preference of the system.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1997>

subprojects/extensions-app/data/ui/extension-row.ui
subprojects/extensions-app/data/ui/extensions-window.ui
subprojects/extensions-app/js/main.js

index ec56fedc9ed3fbe59e96da42a82822c56166b343..f41d8fbb7ee520271db5747428fcffc33877117c 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <requires lib="gtk+" version="3.20"/>
   <template class="ExtensionRow" parent="GtkListBoxRow">
     <property name="activatable">False</property>
     <child>
index f049bd7e368c7f218a1a444bc7b3c86b054ecdd4..faafa050921e739bf6952b3e4a68b504a49d07b1 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <requires lib="gtk+" version="3.20"/>
   <menu id="primary-menu">
     <section>
       <item>
index 48d382f3f67e8d7ecffea320af425254db7a9518..cbdac693f261914f6aff3e48f56c4949025f0a06 100644 (file)
@@ -4,7 +4,7 @@ imports.gi.versions.Gtk = '4.0';
 
 const Gettext = imports.gettext;
 const Package = imports.package;
-const { Gdk, GLib, Gio, GObject, Gtk, Shew } = imports.gi;
+const { Adw, Gdk, GLib, Gio, GObject, Gtk, Shew } = imports.gi;
 
 Package.initFormat();
 
@@ -38,7 +38,7 @@ function toggleState(action) {
 }
 
 var Application = GObject.registerClass(
-class Application extends Gtk.Application {
+class Application extends Adw.Application {
     _init() {
         GLib.set_prgname('gnome-extensions-app');
         super._init({ application_id: Package.name });